package com.dong.deploy;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@SpringBootApplication
@Slf4j
@ComponentScan({"com.dong","com.donge"})
@EnableAspectJAutoProxy
@SpringBootConfiguration
@MapperScan({"com.dong","com.donge"})
public class NewDemoApplication {

    public static void main(String[] args) {
        try{
            SpringApplication.run(NewDemoApplication.class, args);
        }catch (Exception e){
            log.error("启动失败:{}",e.getMessage());
        }
    }



}
